package com.bigflexlib.x.mx.collections.IList.op
{
	
	
	import mx.collections.IList;


	/**
	 * 
	 * 
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */
	public class ListFieldProjectionOp extends ListMappingOp
	{
		
		private var iFieldName:String;
		
		
		public function ListFieldProjectionOp( iList:IList, oList:IList, iFieldName:String )
		{
			
			this.iFieldName = iFieldName;
			
			super( iList, oList, map );
			
		}
		
		
		private function map( e:* ):*
		{
		
			try {
			
				return e[ iFieldName ];
			
			} catch( e:Error ){}						
		
			return undefined;
		
		}
		
		
		
		
	}
}